package com.haoze.nurse.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.util.Map;

@Table(name = "EMR.NURSE_FILE_DATA_DETAIL")
public class NurseFileDataDetailEntity {

    @Id
    @Column(name = "FILE_DATA_DETAIL_ID", nullable=false)
    private String fileDataDetailId;

    @Column(name = "SUB_FILE_DATA_ID")
    private String subFileDataId;

    @Column(name = "DATA_VERSION", nullable=false)
    private Integer dataVersion;

    @Column(name = "GMT_CREATE")
    private Timestamp gmtCreate;

    @Column(name = "GMT_MODIFY", nullable=false)
    private Timestamp gmtModify;

    @Column(name = "HOSPITAL_ID")
    private String hospitalId;

    @Column(name = "RECORD_TIME", nullable=false)
    private String recordTime;

    @Column(name = "VAR_CODE", nullable=false)
    private String varCode;

    @Column(name = "ELEMENT_ID")
    private String elementId;

    @Column(name = "ELEMENT_TYPE")
    private String elementType;

    @Column(name = "DATA_CODE")
    private String dataCode;

    @Column(name = "DATA_VALUE", nullable=false)
    private String dataValue;

    @Column(name = "BOND_NO", nullable=false)
    private String bondNo;

    @Column(name = "FILE_DATA_ID", nullable=false)
    private String fileDataId;

    @Column(name = "PARENT_ID")
    private String parentId;

    @Column(name = "COMMON_TYPE")
    private String commonType;

    @Column(name = "INPAT_NUM", nullable=false)
    private String inpatNum;

    @Column(name = "OPERATION_ID")
    private String operationId;

    @Column(name = "FLAG")
    private String flag; // 0默认新增，1编辑，2删除

    @Column(name = "MEDICAL_ID")
    private String medicalId;

    @Column(name = "ELEMENT_PROPERTY")
    private String elementProperty;

    @Column(name = "UNIT")
    private String unit;

    @Column(name = "EDIT_IDENTIFICATION")
    private String editIdentification;

    @Column(name = "SHOW_IDENTIFICATION")
    private String showIdentification;

    @Column(name = "PRINT_IDENTIFICATION")
    private String printIdentification;

    @Column(name = "DELETE_IDENTIFICATION")
    private String deleteIdentification;

    @Column(name = "EXPAND_FIELDS")
    private String expandFields; // 用于扩展保存各记录类型 “不需要查询统计” 的扩展字段,需要查询统计的还是需要扩展表字段

    private Map expandFieldsMap;

    @Column(name = "TPL_DETAIL_ID")
    private String tplDetailId;

    @Column(name = "SORT_ID")
    private Integer sortId;

    @Column(name = "QUOTE_TYPE") // 引用类型 1病程，2检查，3检验，4出入量
    private String quoteType;

    @Column(name = "QUOTE_ID") // 引用ID
    private String quoteId;

    @Column(name = "QUOTE_DATA_VALUE") // 引用的内容
    private String quoteDataValue;

    @Column(name = "QUOTE_IDENTIFY") // 引用标识，如是否为病程第一级（主诉的特殊判断）
    private String quoteIdentify;

    @Column(name = "QUOTE_MODIFIED_FLAG") // 引用内容是否修改 1-是 0-否
    private String quoteModifiedFlag;

    @Column(name = "RECORD_TYPE")
    private String recordType;

    @Column(name = "DATA_VALUE_EXCHANGE")
    private String dataValueExchange;

    @Column(name = "UNIT_EXCHANGE")
    private String unitExchange;

    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    public String getQuoteType() {
        return quoteType;
    }

    public void setQuoteType(String quoteType) {
        this.quoteType = quoteType;
    }

    public String getQuoteId() {
        return quoteId;
    }

    public void setQuoteId(String quoteId) {
        this.quoteId = quoteId;
    }

    public String getQuoteDataValue() {
        return quoteDataValue;
    }

    public void setQuoteDataValue(String quoteDataValue) {
        this.quoteDataValue = quoteDataValue;
    }

    public String getQuoteIdentify() {
        return quoteIdentify;
    }

    public void setQuoteIdentify(String quoteIdentify) {
        this.quoteIdentify = quoteIdentify;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public String getTplDetailId() {
        return tplDetailId;
    }

    public void setTplDetailId(String tplDetailId) {
        this.tplDetailId = tplDetailId;
    }

    public Map getExpandFieldsMap() {
        return expandFieldsMap;
    }

    public void setExpandFieldsMap(Map expandFieldsMap) {
        this.expandFieldsMap = expandFieldsMap;
    }

    public String getExpandFields() {
        return expandFields;
    }

    public void setExpandFields(String expandFields) {
        this.expandFields = expandFields;
    }

    public String getEditIdentification() {
        return editIdentification;
    }

    public void setEditIdentification(String editIdentification) {
        this.editIdentification = editIdentification;
    }

    public String getShowIdentification() {
        return showIdentification;
    }

    public void setShowIdentification(String showIdentification) {
        this.showIdentification = showIdentification;
    }

    public String getPrintIdentification() {
        return printIdentification;
    }

    public void setPrintIdentification(String printIdentification) {
        this.printIdentification = printIdentification;
    }

    public String getDeleteIdentification() {
        return deleteIdentification;
    }

    public void setDeleteIdentification(String deleteIdentification) {
        this.deleteIdentification = deleteIdentification;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMedicalId() {
        return medicalId;
    }

    public void setMedicalId(String medicalId) {
        this.medicalId = medicalId;
    }

    public String getElementProperty() {
        return elementProperty;
    }

    public void setElementProperty(String elementProperty) {
        this.elementProperty = elementProperty;
    }

    public String getSubFileDataId() {
        return subFileDataId;
    }

    public void setSubFileDataId(String subFileDataId) {
        this.subFileDataId = subFileDataId;
    }

    public String getFileDataDetailId() {
        return fileDataDetailId;
    }

    public void setFileDataDetailId(String fileDataDetailId) {
        this.fileDataDetailId = fileDataDetailId;
    }

    public Integer getDataVersion() {
        return dataVersion;
    }

    public void setDataVersion(Integer dataVersion) {
        this.dataVersion = dataVersion;
    }

    public Timestamp getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Timestamp gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Timestamp getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Timestamp gmtModify) {
        this.gmtModify = gmtModify;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(String recordTime) {
        this.recordTime = recordTime;
    }

    public String getVarCode() {
        return varCode;
    }

    public void setVarCode(String varCode) {
        this.varCode = varCode;
    }

    public String getElementId() {
        return elementId;
    }

    public void setElementId(String elementId) {
        this.elementId = elementId;
    }

    public String getElementType() {
        return elementType;
    }

    public void setElementType(String elementType) {
        this.elementType = elementType;
    }

    public String getDataCode() {
        return dataCode;
    }

    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    public String getDataValue() {
        return dataValue;
    }

    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    public String getBondNo() {
        return bondNo;
    }

    public void setBondNo(String bondNo) {
        this.bondNo = bondNo;
    }

    public String getFileDataId() {
        return fileDataId;
    }

    public void setFileDataId(String fileDataId) {
        this.fileDataId = fileDataId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getCommonType() {
        return commonType;
    }

    public void setCommonType(String commonType) {
        this.commonType = commonType;
    }

    public String getInpatNum() {
        return inpatNum;
    }

    public void setInpatNum(String inpatNum) {
        this.inpatNum = inpatNum;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getQuoteModifiedFlag() {
        return quoteModifiedFlag;
    }

    public void setQuoteModifiedFlag(String quoteModifiedFlag) {
        this.quoteModifiedFlag = quoteModifiedFlag;
    }

    public String getDataValueExchange() {
        return dataValueExchange;
    }

    public void setDataValueExchange(String dataValueExchange) {
        this.dataValueExchange = dataValueExchange;
    }

    public String getUnitExchange() {
        return unitExchange;
    }

    public void setUnitExchange(String unitExchange) {
        this.unitExchange = unitExchange;
    }
}
